package br.com.sig.cadastro.recursoshumanos.business.model.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import br.com.sig.business.model.entity.BaseEntity;

@Entity
@Table(schema="sig_cadastro", name="cargo")
public class Cargo extends BaseEntity {

	private static final long serialVersionUID = 306613489150117733L;
	
	private String nome;
	private BigDecimal comissao;

	@NotNull
	@Column(nullable = false, unique = true)
	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	@Column(scale = 1)
	public BigDecimal getComissao() {
		return comissao;
	}

	public void setComissao(BigDecimal comissao) {
		this.comissao = comissao;
	}
	
}